package com.samuel.learning.design.pattern.builder;

import java.util.List;

public abstract class AbstractGoods {

    protected abstract void sortGoods(List<Goods> goodsList);

    private void printGoods(List<Goods> goodsList){
        goodsList.stream().forEach(t-> System.out.println(t.toString()));
    }

    public void excutor(List<Goods> goodsList){
        this.sortGoods(goodsList);
        this.printGoods(goodsList);
    }

}
